home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_07
/
2n07012a
< prev
next >
Wrap
Text File
|
1991-06-02
|
556b
|
27 lines
#ifndef TIMERS_H
#define TIMERS_H
typedef unsigned long ULONG;
typedef void (*TIMER_FIRE)(struct TIMER *);
typedef struct TIMER
{
struct TIMER *Next;
int EventId;
ULONG Interval;
ULONG ThisTime;
ULONG LastTime;
TIMER_FIRE Fire;
} TIMER;
void InitTimerPackage(HANDLE Instance, TIMER_FIRE Func);
TIMER *TimerCreate(int EventId);
void TimerDelete(TIMER *Timer);
int TimerStart(TIMER *Timer, ULONG Interval);
void TimerStop(TIMER *Timer);
#endif